package com.yafeng.owns.entrmodule;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling  //计划任务开启
@SpringBootApplication
@ComponentScans(value = {
        @ComponentScan(basePackages = "com.yafeng.owns"),
        @ComponentScan(basePackages = "com.yafeng.owns.common"),
        @ComponentScan(basePackages = "com.yafeng.owns.thrgame"),
        @ComponentScan(basePackages = "com.yafeng.owns.system"),
})
public class EntrmoduleApplication {

    public static void main(String[] args) {
        //1、返回IOC容器


        ApplicationContext ret = SpringApplication.run(EntrmoduleApplication.class, args);
/*
        for (String name :ret.getBeanDefinitionNames()){
           System.out.println("==========================");
            System.out.println(name);
        }*/
    }

}
